package com.talkingdata.hadoop.guard.bean;

public class SchedulerState {
    private int id;                                    // 编号
    private String clusterId;                          // 集群名称
    private String queueName;                          // 队列名称
    private String strMemory;                          // 队列内存资源
    private long memory;                               // 队列内存资源
    private int vCores;                                // 队列 vcore 资源
    private Long queuesmaxResources;                   // 队列最大资源
    private Double queuesUsedResources;                // 队列使用资源
    private Double queuesUsedResourcesPercent;         // 队列使用资源比例
    private String schedulerType;                      // 队列策略
    private String timestamp;                          // 时间戳


    public long getMemory() {
        return memory;
    }

    public void setMemory(long memory) {
        this.memory = memory;
    }

    public SchedulerState(int id, String clusterId, String queueName, String strMemory, long memory, int vCores, Long queuesmaxResources, Double queuesUsedResources, Double queuesUsedResourcesPercent, String schedulerType, String timestamp) {
        this.id = id;
        this.clusterId = clusterId;
        this.queueName = queueName;
        this.strMemory = strMemory;
        this.memory = memory;
        this.vCores = vCores;
        this.queuesmaxResources = queuesmaxResources;
        this.queuesUsedResources = queuesUsedResources;
        this.queuesUsedResourcesPercent = queuesUsedResourcesPercent;
        this.schedulerType = schedulerType;
        this.timestamp = timestamp;
    }

    public SchedulerState(String clusterId, String queueName, String strMemory, long memory, int vCores, Long queuesmaxResources, Double queuesUsedResources, Double queuesUsedResourcesPercent, String schedulerType, String timestamp) {
        this.clusterId = clusterId;
        this.queueName = queueName;
        this.strMemory = strMemory;
        this.memory = memory;
        this.vCores = vCores;
        this.queuesmaxResources = queuesmaxResources;
        this.queuesUsedResources = queuesUsedResources;
        this.queuesUsedResourcesPercent = queuesUsedResourcesPercent;
        this.schedulerType = schedulerType;
        this.timestamp = timestamp;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getClusterId() {
        return clusterId;
    }

    public void setClusterId(String clusterId) {
        this.clusterId = clusterId;
    }

    public String getQueueName() {
        return queueName;
    }

    public void setQueueName(String queueName) {
        this.queueName = queueName;
    }

    public String getStrMemory() {
        return strMemory;
    }

    public void setStrMemory(String strMemory) {
        this.strMemory = strMemory;
    }

    public int getvCores() {
        return vCores;
    }

    public void setvCores(int vCores) {
        this.vCores = vCores;
    }

    public Long getQueuesmaxResources() {
        return queuesmaxResources;
    }

    public void setQueuesmaxResources(Long queuesmaxResources) {
        this.queuesmaxResources = queuesmaxResources;
    }

    public Double getQueuesUsedResources() {
        return queuesUsedResources;
    }

    public void setQueuesUsedResources(Double queuesUsedResources) {
        this.queuesUsedResources = queuesUsedResources;
    }

    public Double getQueuesUsedResourcesPercent() {
        return queuesUsedResourcesPercent;
    }

    public void setQueuesUsedResourcesPercent(Double queuesUsedResourcesPercent) {
        this.queuesUsedResourcesPercent = queuesUsedResourcesPercent;
    }

    public String getSchedulerType() {
        return schedulerType;
    }

    public void setSchedulerType(String schedulerType) {
        this.schedulerType = schedulerType;
    }

    public String getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(String timestamp) {
        this.timestamp = timestamp;
    }

    @Override
    public String toString() {
        return "SchedulerState{" +
                "clusterId='" + clusterId + '\'' +
                ", queueName='" + queueName + '\'' +
                ", strMemory='" + strMemory + '\'' +
                ", memory=" + memory +
                ", vCores=" + vCores +
                ", queuesmaxResources=" + queuesmaxResources +
                ", queuesUsedResources=" + queuesUsedResources +
                ", queuesUsedResourcesPercent=" + queuesUsedResourcesPercent +
                ", schedulerType='" + schedulerType + '\'' +
                ", timestamp='" + timestamp + '\'' +
                '}';
    }

    public SchedulerState() {
    }
}
